package com.halopay.service.lmpl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.halopay.entity.PacketDetail;
import com.halopay.mapper.PacketDetailMapper;
import com.halopay.service.PacketDetailService;
import com.halopay.common.utils.PageUtils;
import com.halopay.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;



@Service("packetDetailService")
public class PacketDetailServiceImpl extends ServiceImpl<PacketDetailMapper, PacketDetail> implements PacketDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<PacketDetail> page = this.selectPage(
                new Query<PacketDetail>(params).getPage(),
                new EntityWrapper<PacketDetail>()
        );

        return new PageUtils(page);
    }

}
